package com.shop.service;

import com.shop.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service("userInfoServiceImp")
public class UserInfoServiceImp implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public int updateArticleNumber(@RequestParam("authorId") Integer authorId, @RequestParam("changeNum") int changeNum) {
        return userInfoMapper.updateArticleNumber(authorId, changeNum);
    }
}
